#ifndef HERO_H
#define HERO_H
#include<QPixmap>
#include<background.h>
#include<monster.h>
#include<stage.h>
#include<door.h>
#include<config.h>
#include<npc.h>
#include<store.h>

class hero
{
public:
    hero();
    int _row;
    int _col;
    int _hp;
    int _attack;
    int _defend;
    int level;
    int money;
    int exp;
    int keyY;
    int keyB;
    int keyR;
    int maxFloor;
    bool hasPan;
    bool hasPick;
    bool hasTen;
    bool fairyTalk;
    bool stealTalk;
    bool prinessTalk;
    bool hasQuery;
    QString path;
    config c;
    static hero& getinstance();
    void init();
    void move(int row,int col);
    void levelUp(int num);
    void talk(npc &c);
    void pick(stage &s);
    bool openDoor(door &d);
    bool fight(monster &m);


};

#endif // HERO_H
